class Guest {

    String name
	String email
	String phoneNumber
	String line1
	String line2
	String line3
	String city
	String postalCode
	String state
	String country

	Reservation reservation

	static belongsTo = Reservation

	static constraints = {
		name(size:5..50,blank:false)
		email(email:true,blank:false)
		phoneNumber(nullable:true,size:8..12,blank:false)
		line1(nullable:false,size:2..55,blank:false)
		line2(nullable:true,size:2..55,blank:true)
		line3(nullable:true,size:1..55,blank:true)
		city(nullable:true,size:1..55,blank:false)
		postalCode(nullable:true,size:1..20,blank:true)
		state(nullable:true,size:1..55,blank:true)
		country(nullable:true,size:2..2,blank:false)
	}

    String toString () {
        return "Guest ${name}"
    }
}
